/**
 * Created by NMTuan on 2016/10/10.
 */

//api数据接口

hgNews.api = {};

hgNews.api.host = 'http://192.168.2.169/app_main.php?';
hgNews.api.staticCategories = hgNews.api.host  + 'mod=static&action=categories';   //栏目列表

hgNews.api.newsList = hgNews.api.host  + 'mod=news&action=list';   //新闻列表
hgNews.api.newsShow = hgNews.api.host  + 'mod=news&action=show';   //新闻详情页

hgNews.api.albumsList = hgNews.api.host  + 'mod=albums&action=list';   //图库列表
hgNews.api.albumsShow = hgNews.api.host  + 'mod=albums&action=show';   //图库详情页

hgNews.api.commentList = hgNews.api.host  + 'mod=comment&action=list';   //评论列表
hgNews.api.addCollect = hgNews.api.host  + 'mod=utility&action=addfavorite';   //添加收藏
hgNews.api.collect = hgNews.api.host   + 'mod=utility&action=isfavorite';   //是否已收藏

hgNews.api.intoComment = hgNews.api.host  + 'mod=comment&action=post';   //评论//回复评论
hgNews.api.intoNewsPraise = hgNews.api.host  + 'mod=news&action=like';   //文章点赞
hgNews.api.intoCommentPraise = hgNews.api.host  + 'mod=comment&action=like';   //评论点赞
hgNews.api.intoUtilityFollow = hgNews.api.host  + 'mod=utility&action=follow';   //添加关注
hgNews.api.intoUtilityUnfollow = hgNews.api.host  + 'mod=utility&action=unfollow';   //取消关注

hgNews.api.verificationCode = hgNews.api.host  + 'mod=sms&action=send';   //验证码
hgNews.api.register1 = hgNews.api.host  + 'mod=member&action=register';   //验证码注册
hgNews.api.register2 = hgNews.api.host  + 'mod=member&action=login';   //账号登录

hgNews.api.getprofile = hgNews.api.host  + 'mod=member&action=getprofile';   //获取个人资料
hgNews.api.getprofilechange = hgNews.api.host  + 'mod=member&action=updateprofile';   //编辑个人资料
                                //修改会员名

hgNews.api.checknickname = hgNews.api.host  + 'mod=member&action=checknickname';   //检查用户昵称
hgNews.api.updatenickname = hgNews.api.host  + 'mod=member&action=updatenickname';   //更新用户昵称
hgNews.api.space = hgNews.api.host  + 'mod=member&action=space';   //个人中心首页
hgNews.api.commentMy = hgNews.api.host  + 'mod=member&action=comment&op=received';   //评论我的
hgNews.api.myComment = hgNews.api.host  + 'mod=member&action=comment&op=sent';   //我的评论
hgNews.api.myFavorite = hgNews.api.host  + 'mod=member&action=favorite';   //我的收藏
hgNews.api.delfavorite = hgNews.api.host  + 'mod=member&action=delfavorite';   //删除收藏
hgNews.api.fans = hgNews.api.host  + 'mod=member&action=fans';  //我的粉丝
hgNews.api.followee = hgNews.api.host  + 'mod=member&action=followee';  //我的关注
hgNews.api.changemobile = hgNews.api.host  + 'mod=sms&action=send&type=changemobile';  //发送验证码修改手机号
hgNews.api.changemobileConfirm = hgNews.api.host  + 'mod=member&action=profile&op=changemobile';  //确认修改手机号
hgNews.api.privacy = hgNews.api.host  + 'mod=member&action=privacy';  //隐私设置
hgNews.api.privacyOp = hgNews.api.host  + 'mod=member&action=privacy&op=settings';  //获取隐私设置
hgNews.api.headPortrait = hgNews.api.host  + '?mod=member&action=profile&op=changeavatar';  //修改头像
hgNews.api.changepassword = hgNews.api.host  + 'mod=sms&action=send&type=changepassword';  //发送验证码修改密码
hgNews.api.changepassword2 = hgNews.api.host  + 'mod=member&action=profile&op=changepassword2';  //提交验证码和新密码
hgNews.api.changepasswordFormer = hgNews.api.host  + 'mod=member&action=profile&op=changepassword';  //提交旧密码修改密码
hgNews.api.tweet = hgNews.api.host  + 'mod=member&action=tweet';  //发布动态
hgNews.api.followList = hgNews.api.host  + 'mod=member&action=follow&op=list';  //动态列表
      //评论动态
hgNews.api.detail = hgNews.api.host  + 'mod=member&action=thread&op=detail';  //动态评论列表
hgNews.api.reply = hgNews.api.host  + 'mod=member&action=follow&op=reply';  //回复动态

hgNews.api.sysmsg = hgNews.api.host  + 'mod=utility&action=sysmsg';  //站内消息
hgNews.api.appslist = hgNews.api.host  + 'mod=utility&action=apps&op=list';  //推荐应用
hgNews.api.version = hgNews.api.host  + 'mod=utility&action=app&op=version';  //应用版本



